package net.ib.mtalk.database.task;

import net.ib.mntalk.protocol.Common.UUIDMsg;
import net.ib.mtalk.database.helper.InboxDatabaseHelper;
import android.content.Context;
import android.os.Handler;

/**
 * Client Task
 * ViewUUID 에 대한 뷰를 삭제한다.
 * 
 * @author happy2v
 *
 */
public class DBDeleteViewTask extends AsyncClientTask {

	private UUIDMsg mViewUuid;
	
	public DBDeleteViewTask(Context context, Handler uiHandler, UUIDMsg viewUuid) {
		super(context, uiHandler);
		this.mViewUuid = viewUuid;
	}

	@Override
	protected void onPostExecute(int resultCode, Object sentObject,
			Object receivedObject) {
		InboxDatabaseHelper.deleteView(mContext, mViewUuid);
	}

}
